import {Hero} from './hero';
import {HEROES} from './mock-heroes';
import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';

@Injectable()
export class HeroService {

  constructor() {}

  getHeros(): Observable<Hero[]> {
    return Observable.of(HEROES);
  }
}
